---
--- Created by heiye.
--- DateTime: 2025/8/2 下午3:39
---

-- 操作的 Key
local key = KEYS[1]
-- 评论的 ID
local commentId = ARGV[1]
-- 过期时间 (秒)
local expireSeconds = ARGV[1]

redis.call("R.SETBIT", key, commentId, 1)

-- 设置过期时间
redis.call("EXPIRE", key, expireSeconds)

return 0
